//
//  WTGiftModel.m
//  WTLiveSDKDemo
//
//  Created by ben on 16/9/30.
//  Copyright © 2016年 ben. All rights reserved.
//

#import "WTGiftModel.h"

@implementation WTGiftModel
+ (NSDictionary *)replacedKeyFromPropertyName {
    return @{@"gift_id":@"Id",
             @"gift_unit_price":@"Unit_price",
             @"gift_name":@"Name",
             @"gift_image_url":@"Image_url",
             @"gift_scale":@"Scale"};
}

- (WTChatRoomGiftModel*)chatRoomGiftModel{
    
    WTChatRoomGiftModel* model = [[WTChatRoomGiftModel alloc] init];
    model.gift_image_url = self.gift_image_url;
    model.gift_id = [NSString stringWithFormat:@"%zd",self.gift_id];
    model.gift_name = self.gift_name;
    model.gift_price = self.gift_unit_price;
    model.gift_scale = self.gift_scale;
    return model;
}
@end
